﻿using MVVM_CAD.Model;
using MVVM_CAD.Strategy;
using MVVM_CAD.ViewModel;
using Ninject.Modules;

namespace MVVM_CAD.Common
{
    public class ViewModelsModule : NinjectModule
    {
        public override void Load()
        {
            Bind<MainViewModel>().ToSelf();
            Bind<FigurePropertiesViewModel>().ToSelf();
            Bind<ToolsViewModel>().ToSelf();
            Bind<IStrategy>().To<SelectionToolStrategy>();
            Bind<IFigure>().To<Selection>().WhenInjectedInto<SelectionToolStrategy>();
        }
    }
}
